/**
    费用标准 组件
**/
(function (vc) {

    vc.extends({
        propTypes: {
            callBackListener: vc.propTypes.string, //父组件名称
            callBackFunction: vc.propTypes.string //父组件监听方法
        },
        data: {
            viewHousekeepingFeeConfigInfo: {
                index: 0,
                flowComponent: 'viewHousekeepingFeeConfigInfo',
                configId: '',
                feeName: '',
                feeTypeCd: '',
                computingFormula: '',
                feePrice: '',
                startTime: '',
                endTime: '',
                isDefault: '',

            }
        },
        _initMethod: function () {
            //根据请求参数查询 查询 业主信息
            $that._loadHousekeepingFeeConfigInfoData();
        },
        _initEvent: function () {
            vc.on('viewHousekeepingFeeConfigInfo', 'chooseHousekeepingFeeConfig', function (_app) {
                vc.copyObject(_app, $that.viewHousekeepingFeeConfigInfo);
                vc.emit($props.callBackListener, $props.callBackFunction, $that.viewHousekeepingFeeConfigInfo);
            });

            vc.on('viewHousekeepingFeeConfigInfo', 'onIndex', function (_index) {
                $that.viewHousekeepingFeeConfigInfo.index = _index;
            });

        },
        methods: {

            _openSelectHousekeepingFeeConfigInfoModel() {
                vc.emit('chooseHousekeepingFeeConfig', 'openChooseHousekeepingFeeConfigModel', {});
            },
            _openAddHousekeepingFeeConfigInfoModel() {
                vc.emit('addHousekeepingFeeConfig', 'openAddHousekeepingFeeConfigModal', {});
            },
            _loadHousekeepingFeeConfigInfoData: function () {

            }
        }
    });

})(window.vc);
